<?php //thiet lap form action/?>
<?php 
	//tao form
	echo $this->Form->create('User', array('action'=>'register'));
	
	echo $this->Form->input('username', array('after'=>$form->error('username_unique', 'The username is taken. Please try again')));
	echo $this->Form->input('password');
	echo $this->Form->input('firstname');
	echo $this->Form->input('lastname');
	echo $this->Form->input('email');
	echo $this->Form->input('phone');
	
	//ket form
	echo $this->Form->end('Register');
?>

<!-- Form thiet lap truyen thong
<p>Please fill out the form below to register an account.</p>
<label>Username:</label><input name="username" size="40" />
<label>Password:</label><input type="password" name="password" size="40"
/>
<label>Email Address:</label><input name="email" size="40"
maxlength="255" />
<label>Phone number:</label><input name="phone" size="40" />
<label>First Name:</label><input name="firstname" size="40" />
<label>Last Name:</label><input name="lastname" size="40" />



<input type="submit" value="register" />
</form>
-->